﻿	      <?php include("conn.php");
             mysql_query('SET NAMES UTF8'); 

	  

class MyPrizeBean
{
	public $leimu;
	public $leimuid;
	function __construct($leimu,$leimuid)
	{
		$this->leimu      = $leimu;
		$this->leimuid      = $leimuid;
		
	}
}


 
	$rert30=mysql_query("select *from categroy ");
	
	$prize = array();
	
while($rowf=mysql_fetch_array($rert30))
{
 
			$prize[] = new MyPrizeBean($rowf['name'],$rowf['cateid']);
			
}
		
	

echo json_encode($prize);


?>